package me.tuyou.spring.boot.controller;

import me.tuyou.spring.boot.bean.MyBean;
import me.tuyou.spring.boot.starter.service.MyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description
 * @Author tuyou_cd
 * @Date 2020/6/15 15:57
 */
@RestController
public class HelloController {

    @Resource
    private MyService myService;

    @Resource
    private MyBean myBean;

    @GetMapping("/hello")
    public String hello() {
        myService.sayHello();
        return "hello";
    }
}
